<template>
  <div>
    <el-dialog v-model="form.dialogFormVisible">
      <div class="header"><span>我的考勤</span></div>
      <div class="div">
          <div class="divBox" v-for="(v,i) in form.data" :key="i">
              <span>异常事件:{{ v.punchMon }}{{v.punchEve}}</span>
              <el-input
                  type="textarea"
                  placeholder="请输入内容"
                  v-model="textarea"
                  maxlength="200"
                  show-word-limit
              >
            </el-input>
          </div>
      </div>
      
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="form.dialogFormVisible = false">取 消</el-button>
          <el-button type="primary" @click="queFun"
            >确 定</el-button
          >
        </span>
      </template>
    </el-dialog>
  </div>
</template>
<script>
import { toRefs,ref } from "vue";
export default {
  data() {
    return {
      formLabelWidth: "120px",
    };
  },
  props: {
    form: Object,
  },
  setup(props) {
    const textarea =ref('')
    const { form } = toRefs(props);
    const queFun= ()=>{
      console.log(textarea.value);
    }
    return {
      form,
      textarea,
      queFun
    };
  },
};
</script>

<style lang="scss" scoped>
@import "../style/scss.scss";
.header {
  width: 100%;
  height: 30px;
  border-left: $border-left;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  span {
    margin-left: 15px;
  }
}
.div{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  .divBox{
    width: 50%;
  }
}
</style>